.class Lcom/philzhu/www/framework/impl/AndroidGame$1;
.super Ljava/lang/Object;
.source "AndroidGame.java"

# interfaces
.implements Landroid/os/Handler$Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/philzhu/www/framework/impl/AndroidGame;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/philzhu/www/framework/impl/AndroidGame;


# direct methods
.method constructor <init>(Lcom/philzhu/www/framework/impl/AndroidGame;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/philzhu/www/framework/impl/AndroidGame$1;->this$0:Lcom/philzhu/www/framework/impl/AndroidGame;

    .line 58
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)Z
    .locals 8
    .parameter "msg"

    .prologue
    const/4 v7, 0x2

    const/4 v6, 0x0

    const/4 v5, 0x1

    .line 62
    iget v3, p1, Landroid/os/Message;->what:I

    if-ne v3, v5, :cond_0

    .line 64
    invoke-virtual {p1}, Landroid/os/Message;->getData()Landroid/os/Bundle;

    move-result-object v3

    const-string v4, "text"

    invoke-virtual {v3, v4}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 65
    .local v2, text:Ljava/lang/String;
    iget-object v3, p0, Lcom/philzhu/www/framework/impl/AndroidGame$1;->this$0:Lcom/philzhu/www/framework/impl/AndroidGame;

    invoke-static {v3, v2, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    move v3, v5

    .line 94
    .end local v2           #text:Ljava/lang/String;
    :goto_0
    return v3

    .line 68
    :cond_0
    iget v3, p1, Landroid/os/Message;->what:I

    if-ne v3, v7, :cond_1

    .line 70
    iget-object v3, p0, Lcom/philzhu/www/framework/impl/AndroidGame$1;->this$0:Lcom/philzhu/www/framework/impl/AndroidGame;

    #calls: Lcom/philzhu/www/framework/impl/AndroidGame;->showNoPermissionDialog()V
    invoke-static {v3}, Lcom/philzhu/www/framework/impl/AndroidGame;->access$0(Lcom/philzhu/www/framework/impl/AndroidGame;)V

    move v3, v5

    .line 71
    goto :goto_0

    .line 73
    :cond_1
    iget v3, p1, Landroid/os/Message;->what:I

    const/4 v4, 0x3

    if-ne v3, v4, :cond_2

    .line 75
    iget-object v3, p0, Lcom/philzhu/www/framework/impl/AndroidGame$1;->this$0:Lcom/philzhu/www/framework/impl/AndroidGame;

    invoke-virtual {v3}, Lcom/philzhu/www/framework/impl/AndroidGame;->getCurrentScreen()Lcom/philzhu/www/framework/Screen;

    move-result-object v0

    .line 76
    .local v0, currentScreen:Lcom/philzhu/www/framework/Screen;
    invoke-virtual {v0}, Lcom/philzhu/www/framework/Screen;->getScreenType()I

    move-result v1

    .line 77
    .local v1, currentScreenType:I
    if-ne v1, v7, :cond_3

    .line 79
    iget-object v3, p0, Lcom/philzhu/www/framework/impl/AndroidGame$1;->this$0:Lcom/philzhu/www/framework/impl/AndroidGame;

    #getter for: Lcom/philzhu/www/framework/impl/AndroidGame;->lp:Landroid/widget/RelativeLayout$LayoutParams;
    invoke-static {v3}, Lcom/philzhu/www/framework/impl/AndroidGame;->access$1(Lcom/philzhu/www/framework/impl/AndroidGame;)Landroid/widget/RelativeLayout$LayoutParams;

    move-result-object v3

    iput v6, v3, Landroid/widget/RelativeLayout$LayoutParams;->bottomMargin:I

    .line 80
    iget-object v3, p0, Lcom/philzhu/www/framework/impl/AndroidGame$1;->this$0:Lcom/philzhu/www/framework/impl/AndroidGame;

    #getter for: Lcom/philzhu/www/framework/impl/AndroidGame;->lp:Landroid/widget/RelativeLayout$LayoutParams;
    invoke-static {v3}, Lcom/philzhu/www/framework/impl/AndroidGame;->access$1(Lcom/philzhu/www/framework/impl/AndroidGame;)Landroid/widget/RelativeLayout$LayoutParams;

    move-result-object v3

    const/16 v4, 0xe

    invoke-virtual {v3, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    .line 81
    iget-object v3, p0, Lcom/philzhu/www/framework/impl/AndroidGame$1;->this$0:Lcom/philzhu/www/framework/impl/AndroidGame;

    #getter for: Lcom/philzhu/www/framework/impl/AndroidGame;->adView:Lcom/adview/AdViewLayout;
    invoke-static {v3}, Lcom/philzhu/www/framework/impl/AndroidGame;->access$2(Lcom/philzhu/www/framework/impl/AndroidGame;)Lcom/adview/AdViewLayout;

    move-result-object v3

    iget-object v4, p0, Lcom/philzhu/www/framework/impl/AndroidGame$1;->this$0:Lcom/philzhu/www/framework/impl/AndroidGame;

    #getter for: Lcom/philzhu/www/framework/impl/AndroidGame;->lp:Landroid/widget/RelativeLayout$LayoutParams;
    invoke-static {v4}, Lcom/philzhu/www/framework/impl/AndroidGame;->access$1(Lcom/philzhu/www/framework/impl/AndroidGame;)Landroid/widget/RelativeLayout$LayoutParams;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/adview/AdViewLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 89
    .end local v0           #currentScreen:Lcom/philzhu/www/framework/Screen;
    .end local v1           #currentScreenType:I
    :cond_2
    :goto_1
    iget v3, p1, Landroid/os/Message;->what:I

    const/4 v4, 0x4

    if-ne v3, v4, :cond_4

    .line 91
    iget-object v3, p0, Lcom/philzhu/www/framework/impl/AndroidGame$1;->this$0:Lcom/philzhu/www/framework/impl/AndroidGame;

    #calls: Lcom/philzhu/www/framework/impl/AndroidGame;->showNoGold()V
    invoke-static {v3}, Lcom/philzhu/www/framework/impl/AndroidGame;->access$3(Lcom/philzhu/www/framework/impl/AndroidGame;)V

    move v3, v5

    .line 92
    goto :goto_0

    .line 85
    .restart local v0       #currentScreen:Lcom/philzhu/www/framework/Screen;
    .restart local v1       #currentScreenType:I
    :cond_3
    iget-object v3, p0, Lcom/philzhu/www/framework/impl/AndroidGame$1;->this$0:Lcom/philzhu/www/framework/impl/AndroidGame;

    #getter for: Lcom/philzhu/www/framework/impl/AndroidGame;->lp:Landroid/widget/RelativeLayout$LayoutParams;
    invoke-static {v3}, Lcom/philzhu/www/framework/impl/AndroidGame;->access$1(Lcom/philzhu/www/framework/impl/AndroidGame;)Landroid/widget/RelativeLayout$LayoutParams;

    move-result-object v3

    const/16 v4, -0x3e8

    iput v4, v3, Landroid/widget/RelativeLayout$LayoutParams;->bottomMargin:I

    .line 86
    iget-object v3, p0, Lcom/philzhu/www/framework/impl/AndroidGame$1;->this$0:Lcom/philzhu/www/framework/impl/AndroidGame;

    #getter for: Lcom/philzhu/www/framework/impl/AndroidGame;->adView:Lcom/adview/AdViewLayout;
    invoke-static {v3}, Lcom/philzhu/www/framework/impl/AndroidGame;->access$2(Lcom/philzhu/www/framework/impl/AndroidGame;)Lcom/adview/AdViewLayout;

    move-result-object v3

    iget-object v4, p0, Lcom/philzhu/www/framework/impl/AndroidGame$1;->this$0:Lcom/philzhu/www/framework/impl/AndroidGame;

    #getter for: Lcom/philzhu/www/framework/impl/AndroidGame;->lp:Landroid/widget/RelativeLayout$LayoutParams;
    invoke-static {v4}, Lcom/philzhu/www/framework/impl/AndroidGame;->access$1(Lcom/philzhu/www/framework/impl/AndroidGame;)Landroid/widget/RelativeLayout$LayoutParams;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/adview/AdViewLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_1

    .end local v0           #currentScreen:Lcom/philzhu/www/framework/Screen;
    .end local v1           #currentScreenType:I
    :cond_4
    move v3, v6

    .line 94
    goto :goto_0
.end method
